run-with-locales: Make use of -- optional
authorSimon McVittie <smcv@debian.org>
Sun, 1 Mar 2020 12:12:45 +0000 (12:12 +0000)
committerSimon McVittie <smcv@debian.org>
Sun, 1 Mar 2020 13:54:35 +0000 (13:54 +0000)
Stop parsing arguments as soon as we see a non-option argument.

Gbp-Dch: ignore

debian/run-with-locales

index c3b192ba5499aee38c9e29e4414573a06a7f2256..79267663cfda7fa6ba2ff23d622cc24447aaf154 100755 (executable)
@@ -43,7 +43,7 @@ usage () {
     echo "Usage: $me [--generate LOCALE...] COMMAND [ARGS...]"
 }
 
-getopt_temp=help
+getopt_temp=+help
 getopt_temp="$getopt_temp,generate:"
 
 getopt_temp="$(getopt -o '' --long "$getopt_temp" -n "$0" -- "$@")"